home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lang_c / cgraphix / kdrawbor.c < prev    next >
Text File  |  1986-05-27  |  777b  |  31 lines

  1. /* «RM120»«PL99999»«TS4,8,12,16,20,24,28,32,36,40,44,48,52,56,60,64,68,72,76» */
  2. #include    <stdio.h>
  3. #define    EXTERN    extern
  4. #include    <typedef.h>
  5.  
  6.  
  7. void DrawBorder()
  8. {
  9.     int        ClipLoc, DirectModeLoc;
  10.     int        xl1,xl2;
  11.  
  12.     DirectModeLoc = DirectModeGlb;
  13.     DirectModeGlb = TRUE;
  14.     ClipLoc = ClippingGlb;
  15.     ClippingGlb = FALSE;
  16.     xl1 = X1RefGlb << 3;
  17.     xl2 = (X2RefGlb << 3) + 7;
  18.     if ((HeaderGlb) && (strlen(window[WindowNdxGlb].header) > 0) &&
  19.         (window[WindowNdxGlb].y2-window[WindowNdxGlb].y1 > HeaderSizeGlb) &&
  20.         (strlen(window[WindowNdxGlb].header) * 6 < iabs(xl2-xl1)-4)) {
  21.         DrawHeader(xl1, xl2);
  22.     }
  23.     else {
  24.         window[WindowNdxGlb].drawn = FALSE;
  25.         DrawSqr(xl1, Y1RefGlb, xl2, Y2RefGlb, FALSE);
  26.     }
  27.     DirectModeGlb = DirectModeLoc;
  28.     ClippingGlb = ClipLoc;
  29. }
  30.  
  31.